#define _CRT_SECURE_NO_WARNINGS 1
#include "HashMap.h"
#include "HashSet.h"

namespace zkz
{
	void test1()
	{
		HashSet<int, int> hs;
		hs.insert(1);
		hs.insert(2);
		hs.insert(3);
		cout << *hs.find(2) << endl;

	}
	void test2()
	{
		HashMap<string, int> hs;
		hs.insert({"6",6});
		hs.insert({ "7",7 });
		hs.insert({ "8",8 });
		cout << hs.find("6")->first<< " : "<<  hs["6"] << endl;
		//hs.erase("6");
		//cout << hs.find("6")->first << " : " << hs["6"] << endl;

	}
}

int main()
{
	zkz::HashMap<int, int> ht;
	ht.insert({ 1, 2 });
	ht.insert({ 2, 3 });
	auto it = ht.begin();
	while (it != ht.end())
	{
		cout << it->first << " " << it->second << endl;
		++it;
	}

	return 0;
}